package top.yxqz.thymeleaf.congroller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Calendar;

/**
 * @author: 余小小
 * @date: 2023/10/20
 * @description：
 */

@Controller
public class LoginController {
    /**
     * 跳转到login页面
     */
    @GetMapping("/login")
    public String method(Model model) {
        model.addAttribute("currentYear", Calendar.getInstance().get(Calendar.YEAR));
        return "login";
    }
}
